<?php
class ui_circle_show_edit extends ui {
	/**
	 * @param object $S
	 * @param Array $param = array (
	 * 		id
	 * )
	 */
	public function __construct($S, $param) {
		parent::__construct();
		
		$data_circle = new data_circle();
		if ($data_circle->is_founder($this->uid, $param['id'])) {
			$circle = $data_circle->one($this->uid, $param['id']);
			$circle['title'] = htmlspecialchars($circle['title']);
			$S->assign('circle', $circle);
		}
	}
}
?>